<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="admin_directory_v1.html">Admin SDK API</a> . <a href="admin_directory_v1.customer.html">customer</a> . <a href="admin_directory_v1.customer.devices.html">devices</a> . <a href="admin_directory_v1.customer.devices.chromeos.html">chromeos</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="admin_directory_v1.customer.devices.chromeos.commands.html">commands()</a></code>
</p>
<p class="firstline">Returns the commands Resource.</p>

<p class="toc_element">
  <code><a href="#batchChangeStatus">batchChangeStatus(customerId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](https://support.google.com/chrome/a/answer/3523633).</p>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#issueCommand">issueCommand(customerId, deviceId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Issues a command for the device to execute.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="batchChangeStatus">batchChangeStatus(customerId, body=None, x__xgafv=None)</code>
  <pre>Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](https://support.google.com/chrome/a/answer/3523633).

Args:
  customerId: string, Required. Immutable ID of the Google Workspace account. (required)
  body: object, The request body.
    The object takes the form of:

{ # A request for changing the status of a batch of ChromeOS devices.
  &quot;changeChromeOsDeviceStatusAction&quot;: &quot;A String&quot;, # Required. The action to take on the ChromeOS device in order to change its status.
  &quot;deprovisionReason&quot;: &quot;A String&quot;, # Optional. The reason behind a device deprovision. Must be provided if &#x27;changeChromeOsDeviceStatusAction&#x27; is set to &#x27;CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION&#x27;. Otherwise, omit this field.
  &quot;deviceIds&quot;: [ # Required. List of the IDs of the ChromeOS devices to change. Maximum 50.
    &quot;A String&quot;,
  ],
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response of changing the status of a batch of ChromeOS devices.
  &quot;changeChromeOsDeviceStatusResults&quot;: [ # The results for each of the ChromeOS devices provided in the request.
    { # The result of a single ChromeOS device for a Change state operation.
      &quot;deviceId&quot;: &quot;A String&quot;, # The unique ID of the ChromeOS device.
      &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure.
        &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
        &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
          {
            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
          },
        ],
        &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
      },
      &quot;response&quot;: { # Response for a successful ChromeOS device status change. # The device could change its status successfully.
      },
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="issueCommand">issueCommand(customerId, deviceId, body=None, x__xgafv=None)</code>
  <pre>Issues a command for the device to execute.

Args:
  customerId: string, Immutable. ID of the Google Workspace account. (required)
  deviceId: string, Immutable. ID of Chrome OS Device. (required)
  body: object, The request body.
    The object takes the form of:

{ # A request for issuing a command.
  &quot;commandType&quot;: &quot;A String&quot;, # The type of command.
  &quot;payload&quot;: &quot;A String&quot;, # The payload for the command, provide it only if command supports it. The following commands support adding payload: * `SET_VOLUME`: Payload is a stringified JSON object in the form: { &quot;volume&quot;: 50 }. The volume has to be an integer in the range [0,100]. * `DEVICE_START_CRD_SESSION`: Payload is optionally a stringified JSON object in the form: { &quot;ackedUserPresence&quot;: true, &quot;crdSessionType&quot;: string }. `ackedUserPresence` is a boolean. By default, `ackedUserPresence` is set to `false`. To start a Chrome Remote Desktop session for an active device, set `ackedUserPresence` to `true`. `crdSessionType` can only select from values `private` (which grants the remote admin exclusive control of the ChromeOS device) or `shared` (which allows the admin and the local user to share control of the ChromeOS device). If not set, `crdSessionType` defaults to `shared`. The `FETCH_CRD_AVAILABILITY_INFO` command can be used to determine available session types on the device. * `REBOOT`: Payload is a stringified JSON object in the form: { &quot;user_session_delay_seconds&quot;: 300 }. The `user_session_delay_seconds` is the amount of seconds to wait before rebooting the device if a user is logged in. It has to be an integer in the range [0,300]. When payload is not present for reboot, 0 delay is the default. Note: This only applies if an actual user is logged in, including a Guest. If the device is in the login screen or in Kiosk mode the value is not respected and the device immediately reboots. * `FETCH_SUPPORT_PACKET`: Payload is optionally a stringified JSON object in the form: {&quot;supportPacketDetails&quot;:{ &quot;issueCaseId&quot;: optional_support_case_id_string, &quot;issueDescription&quot;: optional_issue_description_string, &quot;requestedDataCollectors&quot;: []}} The list of available `data_collector_enums` are as following: Chrome System Information (1), Crash IDs (2), Memory Details (3), UI Hierarchy (4), Additional ChromeOS Platform Logs (5), Device Event (6), Intel WiFi NICs Debug Dump (7), Touch Events (8), Lacros (9), Lacros System Information (10), ChromeOS Flex Logs (11), DBus Details (12), ChromeOS Network Routes (13), ChromeOS Shill (Connection Manager) Logs (14), Policies (15), ChromeOS System State and Logs (16), ChromeOS System Logs (17), ChromeOS Chrome User Logs (18), ChromeOS Bluetooth (19), ChromeOS Connected Input Devices (20), ChromeOS Traffic Counters (21), ChromeOS Virtual Keyboard (22), ChromeOS Network Health (23). See more details in [help article](https://support.google.com/chrome/a?p=remote-log).
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A response for issuing a command.
  &quot;commandId&quot;: &quot;A String&quot;, # The unique ID of the issued command, used to retrieve the command status.
}</pre>
</div>

</body></html>